-- GENERATED SPELL FOR [Razorsaw] --


function spell0_20798(pUnit, Event) --@Saw Blade,n/a--
pUnit:FullCastSpellOnTarget(32735,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20798', 500, 1)
end

function spell1_20798(pUnit, Event) --@Slime Spray,n/a--
pUnit:FullCastSpellOnTarget(36486,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20798', 14000, 1)
end

function Sorts_20798(pUnit, Event)
local choix_sorts_20798 = math.random(0, 1)
if choix_sorts_20798 == 0 then
pUnit:RegisterEvent('spell0_20798', 1, 1)
end
if choix_sorts_20798 == 1 then
pUnit:RegisterEvent('spell1_20798', 1, 1)
end
end

function mob20798_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20798', math.random(1500, 3000), 1)
end

function mob20798_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20798_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20798_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20798, 1, 'mob20798_Action')
RegisterUnitEvent(20798, 2, 'mob20798_Leave')
RegisterUnitEvent(20798, 3, 'mob20798_Kill')
RegisterUnitEvent(20798, 4, 'mob20798_Die')
